package com.haixiaoke.saas.house.mapper;


import com.haixiaoke.saas.house.domain.HouseSweep;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 打扫记录Mapper接口
 *
 * @author xiaolong
 * @date 2024-05-11
 */
public interface HouseSweepMapper {
    /**
     * 查询打扫记录
     *
     * @param houseSweepId 打扫记录主键
     * @return 打扫记录
     */
    HouseSweep selectHouseSweepByHouseSweepId(String houseSweepId);

    /**
     * 查询打扫记录列表
     *
     * @param houseSweep 打扫记录
     * @return 打扫记录集合
     */
    List<HouseSweep> selectHouseSweepList(HouseSweep houseSweep);

    /**
     * 新增打扫记录
     *
     * @param houseSweep 打扫记录
     * @return 结果
     */
    int insertHouseSweep(HouseSweep houseSweep);

    /**
     * 修改打扫记录
     *
     * @param houseSweep 打扫记录
     * @return 结果
     */
    int updateHouseSweep(HouseSweep houseSweep);

    /**
     * 删除打扫记录
     *
     * @param houseSweepId 打扫记录主键
     * @return 结果
     */
    int deleteHouseSweepByHouseSweepId(String houseSweepId);

    /**
     * 批量删除打扫记录
     *
     * @param houseSweepIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteHouseSweepByHouseSweepIds(String[] houseSweepIds);

    List<HouseSweep> selectHouseSweepByHouseSweepIds(HouseSweep houseSweep);

    int updateHouseSweepByHouseSweepIds(HouseSweep houseSweep);


    HouseSweep selectHouseSweepByOrderId(String orderId);

    List<HouseSweep> selectHouseSweepByCleanerIds(Long[] cleanerIds);

    int selectHouseSweepNumber(@Param("tenantId") String tenantId, @Param("userId") Long userId);

    HouseSweep selectHouseSweepByHouseId(String houseId);

}
